<div class="merchant_home">
	<div class="side_bar_wrapper">
		<div class="merchant_new_form_title">
			<div class="merchant_new_title_wrapper"><img src="/images/form_title.png"/><span>操作列表</span></div>
		</div>
		<div class="side_bar">
			<li><%= link_to "更改信息", :action => 'edit' %></li>
			<li><%= link_to "添加商店", :action => 'new_store' %></li>
			<li><%= link_to "退出", :action => 'logout' %></li>
		</div>
	</div>
	<div class="list_content">
		<div class="merchant_new_form_title">
			<div class="merchant_new_title_wrapper"><img src="/images/form_title.png"/><span>拥有的快印店列表</span></div>
		</div>
		<div>
		<% for store in @stores %>
			<li>
				<%= link_to store.name, {:action => 'view_store', :id => store} %>  <%= link_to "编辑", {:action => 'edit_store', :id => store} %> 
				<% if store.disabled %>
					<%= link_to "激活", {:action => 'enable_store', :id => store} %>
				<% else %>
					<%= link_to "关闭", {:action => 'disable_store', :id => store} %>
				<% end %>
			</li>
		<% end %>
		</div>
	</div>
</div>